import requests
import re


def main(s):
    # s = input("文字：")
    # s = "战胜"
    result = []
    html = requests.get(f"https://api.deeract.com/l2s/api/questions?keyword={s}")
    for i in html.json():
        # print(i["title"])
        r = re.findall(r"【(.*?)】", i["title"])
        # print(f"答案{r}")
        result.append(f"答案★{r}★{i['title']}")
    return result


if __name__ == "__main__":
    for a in main("多新的历史特点的"):
        print(a)
